<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
    <title></title>
</head>
<body>
    <form method="POST" action="/session/login/">{% csrf_token %}
        <p>用户名:<input name="username" /></p>
        <p>密码:<input name="password" /></p>
        <input type="submit" value="提交" />
        <label style="color:red">{{ msg }}</label>
    </form>
</body>
</html>